package com.qianke.domain.dto.query;


import java.io.Serializable;

public class Sort implements Serializable {

    public static final String ASC = "asc";
    public static final String DESC = "desc";

    private String direction;
    private String property;

    public Sort(String property, String direction) {
        this.property = property;
        this.direction = direction;
    }

    public String getDirection() {
        return direction;
    }

    public String getProperty() {
        return property;
    }

    public void setProperty(String property) {
        this.property = property;
    }


    public void setDirection(String direction) {
        this.direction = direction;
    }

    public static final Sort buildSort(String property, String direction) {
        return new Sort(property, direction);
    }
}


